package com.fix.entity;

import java.util.List;

public class Users {
	// 跟数据库字段同名
	int id;
	String username;
	String password;
	
	// 存该用户有多少个钻
	List<Group> groups; 
	public List<Group> getGroups() {
		return groups;
	}
	public void setGroups(List<Group> groups) {
		this.groups = groups;
	}
	//账户实体 要加get set
	Account accout; 
	
	public Account getAccout() {
		return accout;
	}
	public void setAccout(Account accout) {
		this.accout = accout;
	}
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getUsername() {
		return username;
	}
	public void setUsername(String username) {
		this.username = username;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	@Override
	public String toString() {
		return "\nUsers [id=" + id + ", username=" + username + ", password=" + password + "]";
	}  

}
